<?php

namespace App\Models;

use Slowlyo\OwlAdmin\Models\BaseModel as Model;

/**
 * 请求日志
 */
class AiLog extends Model
{

	protected $table = 'ai_log';

    protected $fillable = [
        'app_id',
        'prompt',
        'images',
        'stream',
        'model',
        'image_token',
        'text_token',
        'params',
        'image_response',
        'text_response',
        'image_request_id',
        'text_request_id',
        'session_id',
        'response_text'
    ];

    public function app()
    {
        return $this->belongsTo(AiApp::class,'app_id','id');
    }
}
